package com.epfuse.cloud.common.security.annotation;

import com.epfuse.cloud.common.security.component.EpfuseResourceServerAutoConfiguration;
import com.epfuse.cloud.common.security.component.EpfuseResourceServerConfiguration;
import com.epfuse.cloud.common.security.feign.EpfuseFeignClientConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import java.lang.annotation.*;

/**
 * @Author : 孙峰
 * @Description:
 * @Date : 2022/7/16  19:12
 */
@Documented
@Inherited  // 子类是可以继承EnableEpfuseResourceServer注解的。
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ EpfuseResourceServerAutoConfiguration.class, EpfuseResourceServerConfiguration.class,
        EpfuseFeignClientConfiguration.class })
public @interface EnableEpfuseResourceServer {
}
